package gui;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JButton;
import javax.swing.LayoutStyle.ComponentPlacement;

public class SeatSelectSuccess {

	private JFrame frmSuccess;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					SeatSelectSuccess window = new SeatSelectSuccess();
					window.frmSuccess.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public SeatSelectSuccess() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmSuccess = new JFrame();
		frmSuccess.setTitle("Success!");
		frmSuccess.setBounds(100, 100, 300, 170);
		frmSuccess.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		
		JLabel successfulSelectionMsg = new JLabel("Your seat has been selected!");
		successfulSelectionMsg.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		
		JButton OkayButton = new JButton("Okay.");
		OkayButton.setFont(new Font("Century Gothic", Font.PLAIN, 14));
		GroupLayout groupLayout = new GroupLayout(frmSuccess.getContentPane());
		groupLayout.setHorizontalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGroup(groupLayout.createParallelGroup(Alignment.LEADING)
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(43)
							.addComponent(successfulSelectionMsg))
						.addGroup(groupLayout.createSequentialGroup()
							.addGap(106)
							.addComponent(OkayButton)))
					.addContainerGap(43, Short.MAX_VALUE))
		);
		groupLayout.setVerticalGroup(
			groupLayout.createParallelGroup(Alignment.LEADING)
				.addGroup(groupLayout.createSequentialGroup()
					.addGap(33)
					.addComponent(successfulSelectionMsg)
					.addPreferredGap(ComponentPlacement.RELATED, 33, Short.MAX_VALUE)
					.addComponent(OkayButton)
					.addGap(19))
		);
		frmSuccess.getContentPane().setLayout(groupLayout);
	}

}
